package com.xing.feign.FallbackFactory;

import com.xing.Utils.Result;
import com.xing.dto.UserRoleSaveDTO;
import com.xing.feign.OssFeign;
import com.xing.feign.SysUserRoleFeign;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class SysUserRoleFeignClientFallbackFactory implements FallbackFactory<SysUserRoleFeign> {
    @Override
    public SysUserRoleFeign create(Throwable cause) {
        return new SysUserRoleFeign() {
            @Override
            public Result saveUserRoleRelation(UserRoleSaveDTO userRoleSaveDTO) {
                return new Result();
            }
        };
    }
}
